const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import( /* webpackChunkName: "about" */ '../views/login')
  },
  {
    path: '/',
    name: 'Home',
    component: () => import( /* webpackChunkName: "about" */ '../views/Home'),
  },
  {
    path: '/main',
    name: 'Main',
    component: () => import( /* webpackChunkName: "about" */ '../views/main'),
    children: [
      {
        path: '/compileDemand/initialScheme',
        name: 'xqbz-inital',
        meta: {
          title: '需求提报管理'
        },
        component: () => import( /* webpackChunkName: "about" */ '../views/xqbz/initial'),
      },
      {
        // path: '/compileDemand/demandTask',
        path: '/compileDemand/xqxmGmManage',
        name: 'xqbz-task',
        meta: {
          title: '需求编制管理'
        },
        component: () => import( /* webpackChunkName: "about" */ '../views/xqbz/task'),
      },
      {
        path: '/feasibilityStudy/dataManagement',
        name: 'keyan-shangbao',
        meta: {
          title: '可研上报'
        },
        component: () => import( /* webpackChunkName: "about" */ '../views/kybz/kesb'),
      },
      {
        path: '/feasibilityStudy/organizationManagement',
        name: 'keyan-shoukou',
        meta: {
          title: '可研收口'
        },
        component: () => import( /* webpackChunkName: "about" */ '../views/kybz/kysk'),
      },
    ]
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },

]

export default routes